import request from '@/utils/request'

// 查询同步轮列表
export function listPulley(query) {
  return request({
    url: '/hualian/pulley/list',
    method: 'get',
    params: query
  })
}

// 查询同步轮详细
export function getPulley(tpId) {
  return request({
    url: '/hualian/pulley/' + tpId,
    method: 'get'
  })
}

// 新增同步轮
export function addPulley(data) {
  return request({
    url: '/hualian/pulley',
    method: 'post',
    data: data
  })
}

// 修改同步轮
export function updatePulley(data) {
  return request({
    url: '/hualian/pulley',
    method: 'put',
    data: data
  })
}

// 删除同步轮
export function delPulley(tpId) {
  return request({
    url: '/hualian/pulley/' + tpId,
    method: 'delete'
  })
}
